Implement a function to calculate the Phi coefficient, a measure of the correlation between two binary variables. The function should take two lists of integers (0s and 1s) as input and return the Phi coefficient rounded to 4 decimal places.
With the number of positions where and :
If the denominator is 0 (one of the variables is constant), return 0.0.